From 46d2979cdd5953206d51933c9ec0fd8c70134771 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 27 Apr 2008 14:11:56 +0000 Subject: [PATCH] gdb: Add zero to checklist of "unknown bytes". --- gpsbabel/gdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gdb.c b/gpsbabel/gdb.c index fc146b547..bd7519124 100644 --- a/gpsbabel/gdb.c +++ b/gpsbabel/gdb.c @@ -58,6 +58,7 @@ 2007/06/18: Tweak some forgotten "flagged" fields 2007/07/07: Better support for new fields since V3 (postal code/street address/instruction) 2008/01/09: Fix handling of option category (cat) + 2008/04/27: Add zero to checklist of "unknown bytes" */ #include @@ -107,8 +108,8 @@ /*******************************************************************************/ -/* static char gdb_release[] = "$Revision: 1.63 $"; */ -static char gdb_release_date[] = "$Date: 2008-04-26 19:30:45 $"; +/* static char gdb_release[] = "$Revision: 1.64 $"; */ +static char gdb_release_date[] = "$Date: 2008-04-27 14:11:56 $"; static gbfile *fin, *fout; static int gdb_ver, gdb_category, gdb_via, gdb_roadbook; @@ -733,7 +734,8 @@ read_route(void) } FREAD(buf, 18); /* unknown 18 bytes; but first should be 0x01 or 0x03 */ - if ((buf[0] != 0x01) && (buf[0] != 0x03)) { + /* seen also 0 with VER3 */ + if ((buf[0] != 0x00) && (buf[0] != 0x01) && (buf[0] != 0x03)) { int i; warnings++; -- 2.30.2